package com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.adapterv2.adapters;

import com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.ResultMsg;

/**
 * @author victorydeng
 * @Classname EmailLoginDector
 * @Description TODO
 * @Date 2020/3/21 13:23
 * @Created by victorydeng
 */
public class EmailLoginAdapter extends AbstraceAdapter {
    public boolean support(Object adapter) {
        return adapter instanceof EmailLoginAdapter;
    }

    public ResultMsg login(String id, Object adapter) {
        if(!support(adapter)){return null;}
        System.out.println("LoginForEmail login");
        return super.loginForRegist(id,null);

    }

}
